package com.jcj.jcjrpc.demo.consumer;

import com.jcj.jcjrpc.core.annotation.JcjConsumer;
import com.jcj.jcjrpc.demo.api.User;
import com.jcj.jcjrpc.demo.api.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class Demo2 {

    @JcjConsumer
    UserService userService2;

    public void test() {
        User user = userService2.findById(100);
        log.debug(user.toString());
    }

}
